import PropTypes from 'prop-types';

function Dialog(props) {
  const { title } = props;
  return (
    <>
      <div>
        <h2 className="title">{title}</h2>
      </div>
    </>
  );
}

Dialog.defaultProps = {
  title: '默认提示',
};
Dialog.propTypes = {
  title: PropTypes.string,
  content: PropTypes.string.isRequired,
};

export default Dialog;
